package android.example.imageandanimation;

import android.app.Activity;
import android.os.Bundle;
import android.view.WindowManager;
import android.view.Window;

public class ImageAndAnimationActivity extends Activity
{
    /** Called when the activity is first created. */
	ImageAndAnimationView imageandanimationview;
    @Override
    public void onCreate(Bundle savedInstanceState)
    {		
        super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		imageandanimationview = new ImageAndAnimationView(this);
        setContentView(imageandanimationview);
        // setContentView(R.layout.main);
    }
	@Override
	public void onStop(){
		super.onStop();
		ImageAndAnimationActivity.this.finish();
	}
	@Override
	public void onBackPressed(){
        ImageAndAnimationActivity.this.finish();
	}
}
